package com.xw.roomWeb.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xw.roomWeb.reomte.UserInfoServiceR;
import com.xw.roomWeb.service.UserInfoService;
import com.xw.roomWeb.vo.ResultDto;
import com.xw.roomWeb.vo.request.UserInfoRequestDTO;
import com.xw.roomWeb.vo.response.UserInfoResponseDTO;
/**
 * 用户数据
 * @author xiaoshengda
 *
 * @date 创建时间：2018年4月5日 下午3:39:53
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
   @Autowired
   private UserInfoServiceR userInfoServiceR;
	@Override
	public ResultDto<UserInfoResponseDTO> loadById(UserInfoRequestDTO userInfoRequestDTO) {
		
		return this.userInfoServiceR.loadById(userInfoRequestDTO);
	}
	@Override
	public ResultDto<?> registerUser(UserInfoRequestDTO userInfoRequestDTO) {
		ResultDto<?> resultDto=this.userInfoServiceR.register(userInfoRequestDTO);
		System.out.println("===="+resultDto.toString());
		return resultDto;
	}

}
